package com.tea.controller;

import com.tea.mapper.StoreInfoMapper;
import com.tea.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/store")
public class StoreController {



    @Resource
    private StoreInfoMapper storeInfoMapper;


    @GetMapping("/list")
    public Result<?> list() {
        return Result.success(storeInfoMapper.selectList(null));
    }
}
